package com.hangim.pce.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.hangim.pce.common.domain.IdEntity;

import java.util.Date;

/**
 * <p>
 * 规则触发处方表
 * </p>
 *
 * @author hongjiliang
 * @since 2018-10-19
 */
@TableName("sys_prescription_rule")
public class SysPrescriptionRule extends IdEntity {

    /**
     * 处方id
     */
    @TableField("pres_id")
    private Long presId;
    /**
     * 机构ID
     */
    @TableField("org_id")
    private Long orgId;
    /**
     * 机构名称
     */
    @TableField("org_name")
    private String orgName;
    /**
     * 就诊科室
     */
    @TableField("dep_name")
    private String depName;
    /**
     * 就诊科室Id
     */
    @TableField("dep_id")
    private Long depId;
    /**
     * 医生ID
     */
    @TableField("doctor_id")
    private Long doctorId;
    /**
     * 医生名称
     */
    @TableField("doctor_name")
    private String doctorName;
    /**
     * 规则描述
     */
    private String description;
    /**
     * 状态
     */
    private Integer active;
    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;
    /**
     * 创建人
     */
    @TableField("created_by")
    private Long createdBy;
    /**
     * 更新时间
     */
    @TableField("updated_at")
    private Date updatedAt;
    /**
     * 更新人
     */
    @TableField("updated_by")
    private Long updatedBy;

    public Long getPresId() {
        return presId;
    }

    public void setPresId(Long presId) {
        this.presId = presId;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getDepName() {
        return depName;
    }

    public void setDepName(String depName) {
        this.depName = depName;
    }

    public Long getDepId() {
        return depId;
    }

    public void setDepId(Long depId) {
        this.depId = depId;
    }

    public Long getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getActive() {
        return active;
    }

    public void setActive(Integer active) {
        this.active = active;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Long getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Long createdBy) {
        this.createdBy = createdBy;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Long getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(Long updatedBy) {
        this.updatedBy = updatedBy;
    }

    @Override
    public String toString() {
        return "SysPrescriptionRule{" +
                ", id=" + id +
                ", presId=" + presId +
                ", orgId=" + orgId +
                ", orgName=" + orgName +
                ", depName=" + depName +
                ", depId=" + depId +
                ", doctorId=" + doctorId +
                ", doctorName=" + doctorName +
                ", description=" + description +
                ", active=" + active +
                ", createdAt=" + createdAt +
                ", createdBy=" + createdBy +
                ", updatedAt=" + updatedAt +
                ", updatedBy=" + updatedBy +
                "}";
    }
}
